import { defineStore } from 'pinia'

const useUserStore = defineStore('user', {
  state: () => ({
    user: {},
    token:
      'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1dWlkIjoiYzY2ZWQ1MzktMjI1Ni00Nzc0LWE2YWUtZTFhNWE2YTFjNWI5IiwidXNlcklkIjozOSwiaWF0IjoxNzQ0NjA0OTg4LCJleHAiOjE3NDQ2MDg1ODh9.6TlTFOHJLzenH_PVMjQF1bALMJcrCyvFE1q-H37QXFE',
  }),
  actions: {
    getToken() {
      return this.token
    },
  },
})

export default useUserStore
